/*
 * @Author: szx
 * @Date: 2022-02-26 13:02:33
 * @LastEditTime: 2022-02-26 13:10:26
 * @Description:
 * @FilePath: \leetcode\1800-1899\1835\1835.js
 */
/**
 * @param {number[]} arr1
 * @param {number[]} arr2
 * @return {number}
 */
var getXORSum = function (arr1, arr2) {
    let sum1 = 0;
    let sum2 = 0;
    for (const i of arr1) sum1 ^= i;
    for (const i of arr2) sum2 ^= i;
    return sum1 & sum2;
};
